import { Overview } from '@/api/Park/park'
import { defineStore } from 'pinia'
import { ref } from 'vue'

const total = ref<number>(0)
const res = await Overview()
console.log(res)

const { count } = res.data
total.value = count
export const usePark = defineStore('parks', {
  state: () => ({
    totals: total.value
  })
})
